//
//  WBNavigationController.swift
//  weibo
//
//  Created by 长城 on 16/12/8.
//  Copyright © 2016年 dhsr. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        //如果不是栈底控制器，做tabbar隐藏
        if childViewControllers.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: true)
        
    }

}
